bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
↳ QTRS
↳ Overlay + Local Confluence
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
BSORT(.(x, y)) → BUBBLE(.(x, y))
BSORT(.(x, y)) → BUTLAST(bubble(.(x, y)))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(x, z))
BSORT(.(x, y)) → BSORT(butlast(bubble(.(x, y))))
BSORT(.(x, y)) → LAST(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
BUTLAST(.(x, .(y, z))) → BUTLAST(.(y, z))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(y, z))
LAST(.(x, .(y, z))) → LAST(.(y, z))
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
BSORT(.(x, y)) → BUBBLE(.(x, y))
BSORT(.(x, y)) → BUTLAST(bubble(.(x, y)))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(x, z))
BSORT(.(x, y)) → BSORT(butlast(bubble(.(x, y))))
BSORT(.(x, y)) → LAST(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
BUTLAST(.(x, .(y, z))) → BUTLAST(.(y, z))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(y, z))
LAST(.(x, .(y, z))) → LAST(.(y, z))
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
↳ QDP
BUTLAST(.(x, .(y, z))) → BUTLAST(.(y, z))
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
↳ QDP
BUTLAST(.(x, .(y, z))) → BUTLAST(.(y, z))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
↳ QDP
BUTLAST(.(x, .(y, z))) → BUTLAST(.(y, z))
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
LAST(.(x, .(y, z))) → LAST(.(y, z))
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
LAST(.(x, .(y, z))) → LAST(.(y, z))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
LAST(.(x, .(y, z))) → LAST(.(y, z))
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
BUBBLE(.(x, .(y, z))) → BUBBLE(.(x, z))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(y, z))
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
BUBBLE(.(x, .(y, z))) → BUBBLE(.(x, z))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(y, z))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
BUBBLE(.(x, .(y, z))) → BUBBLE(.(x, z))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(y, z))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(x, z))
BUBBLE(.(x, .(y, z))) → BUBBLE(.(y, z))
POL(.(x1, x2)) = 1 + 2·x1 + 2·x2
POL(BUBBLE(x1)) = 2·x1
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ PisEmptyProof
↳ QDP
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
BSORT(.(x, y)) → BSORT(butlast(bubble(.(x, y))))
bsort(nil) → nil
bsort(.(x, y)) → last(.(bubble(.(x, y)), bsort(butlast(bubble(.(x, y))))))
bubble(nil) → nil
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
last(nil) → 0
last(.(x, nil)) → x
last(.(x, .(y, z))) → last(.(y, z))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
BSORT(.(x, y)) → BSORT(butlast(bubble(.(x, y))))
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bsort(nil)
bsort(.(x0, x1))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
bsort(nil)
bsort(.(x0, x1))
last(nil)
last(.(x0, nil))
last(.(x0, .(x1, x2)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
BSORT(.(x, y)) → BSORT(butlast(bubble(.(x, y))))
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))
BSORT(.(x0, .(x1, x2))) → BSORT(butlast(if(<=(x0, x1), .(x1, bubble(.(x0, x2))), .(x0, bubble(.(x1, x2))))))
BSORT(.(x0, nil)) → BSORT(butlast(.(x0, nil)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ Narrowing
↳ QDP
↳ DependencyGraphProof
BSORT(.(x0, nil)) → BSORT(butlast(.(x0, nil)))
BSORT(.(x0, .(x1, x2))) → BSORT(butlast(if(<=(x0, x1), .(x1, bubble(.(x0, x2))), .(x0, bubble(.(x1, x2))))))
bubble(.(x, nil)) → .(x, nil)
bubble(.(x, .(y, z))) → if(<=(x, y), .(y, bubble(.(x, z))), .(x, bubble(.(y, z))))
butlast(nil) → nil
butlast(.(x, nil)) → nil
butlast(.(x, .(y, z))) → .(x, butlast(.(y, z)))
bubble(nil)
bubble(.(x0, nil))
bubble(.(x0, .(x1, x2)))
butlast(nil)
butlast(.(x0, nil))
butlast(.(x0, .(x1, x2)))